package cn.autumnorange.app.user.api;

import cn.autumnorange.app.common.dto.ResultDto;
import cn.autumnorange.app.user.api.dto.CronDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wsf
 * @time 2019/6/6 21:47
 */
@FeignClient(value = "autumnorange-app-schedule-task-provider")
public interface CronService {
  @GetMapping(value = "getCronById/{cronId}")
  ResponseEntity<ResultDto<CronDto>> getRolesByUserId(@PathVariable(value = "cronId") long cronId);
}
